/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo928;

/**
 *
 * @author Administrator
 */
public class StudentArrayDemo {
   
  
    public static void main(String args[]){
       
        Student students[]=new Student[3];
        
        students[0]=new Student("123", "li", 90);
        students[1]=new Student("124", "wang", 91);
        students[2]=new Student("125", "zhao", 92);
        Student studentA=new Student("123", "li", 90);
         Student studentB=new Student("124", "wang", 91);
        Student studentC=new Student("125", "zhao", 92);
        
        students[0].getInfo();
        students[1].getInfo();
        students[2].getInfo();
        for(int i=0;i<students.length;i++){
           students[i].getInfo();
        }
        for(Student s:students){
           s.getInfo();
        }
        
        
        
        
        
        
    }
    
}
